function Dictionary() {
    this.dataStore = new Array();
}
Dictionary.prototype.add = function(key, value) {
    this.dataStore[key] = value;
}
Dictionary.prototype.find = function(key) {
    return this.dataStore[key];
}
Dictionary.prototype.remove = function(key) {
    delete this.dataStore[key];
}
Dictionary.prototype.showAll = function() {
    for(var key in this.dataStore) {
        console.log(`${key}:${this.dataStore[key]}`);
    }
}
Dictionary.prototype.count = function() {
    var n = 0;
    for(var key in this.dataStore) {
        n++;
    }
    return n;
}
Dictionary.prototype.clear = function() {
    for(var key in this.dataStore) {
        delete this.dataStore[key];
    }
}
module.exports = {Dictionary};